﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace DigitalAnts
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            
        }

        protected void Session_Start(object sender, EventArgs e)
        {
            Session["Loggged"] = false;
            Session["UserName"] = ""; // Username of current user
            Session["Role"] = "Guest"; // Role of current user: guest, admin, mod, member
            Session["UserID"] = ""; // Id of current user
            Session["Favorite"] = new List<int>();// Favorite Product of current user
            Session["Cart"] = new List<int>();// Cart of current user
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {
            
        }
    }
}